package cn.imvc.app.models;

import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.DealerLevel;
import cn.imvc.app.entities.PriceClass;
import cn.imvc.data.domain.ViewRequest;

public interface DealerLevelModel{
	String delete(int id);

	Page<DealerLevel> find(ViewRequest viewRequest);

	Boolean save(int priceClassId,DealerLevel dealerLever);

	DealerLevel getOne(int id);

	Boolean update(int priceClassId,DealerLevel dealerLever,int id);

	List<DealerLevel> findAll();

	String treeLookup();

	List<PriceClass> getPriceClass();
	
	List<DealerLevel> findByLevelGreaterThan(int level);

	List<DealerLevel> findByLevel(int level);
}
